class Person1 {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
class Student1 extends Person1 {
    private String dep;

    public String getDep() {
        return dep;
    }

    public void setDep(String dep) {
        this.dep = dep;
    }
}
public class ZuoYe {
    public static void main(String[] args) {
        Student1 stu = new Student1();
        stu.setName("张冬");
        stu.setDep("计算机系");
        System.out.println("姓名："+stu.getName());
        System.out.println("系别："+stu.getDep());
    }
}
